package com.pan.service;

import com.pan.entity.Goods;
import com.pan.entity.Result;
import com.pan.vo.GoodsCreateVo;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface GoodsService {
    Result<List<Goods>> selectGoodsList(List<Long> goodsIds);

    Result<List<Goods>> selectGoodsListPage(Integer start, Integer end);

    Result<Goods> selectById(Long id);

    Result<List<Goods>> selectByCategory(Long categoryId);

    Result<List<Goods>> selectByRandom(Integer count);

    @Transactional
    Result insert(String adminTicket, GoodsCreateVo goodsCreateVo);

    @Transactional
    Result update(String adminTicket, Long id, Object updateValue, String updateMemberName) ;
}
